Dynomotion

Group: DynoMotion Message: 1057 From: Allen Date: 4/26/2011
Subject: Axis Position
I know this in an easy one but I honestly cannot figure it out :) In a C program, how do I get the current position of an axis? I have tried several commands which I thought should/would work but nothing has given me the same numbers that I see on the Axis window.

Thanks,
Allen
Group: DynoMotion Message: 1058 From: Tom Kerekes Date: 4/26/2011
Subject: Re: Axis Position
Hi Allen,
 
The current position of Axis0 can be referenced as ch0->Position or chan[0].Position
 
To print the position on the Console Screen
 
printf("Position=%f\n",ch0->Position);
 
Regards
TK 

Group: DynoMotion Message: 1061 From: Allen Date: 4/26/2011
Subject: Re: Axis Position
Looks like it may have been just a matter of cycling power to the board (that has gotten me more than once!!!)



--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Allen,
>
> The current position of Axis0 can be referenced as ch0->Position or
> chan[0].Position
>
> To print the position on the Console Screen
>
> printf("Position=%f\n",ch0->Position);
>
> Regards
> TK 
>
>
>
>
> ________________________________
> From: Allen <agray@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tue, April 26, 2011 7:07:49 AM
> Subject: [DynoMotion] Axis Position
>
>  
> I know this in an easy one but I honestly cannot figure it out :) In a C
> program, how do I get the current position of an axis? I have tried several
> commands which I thought should/would work but nothing has given me the same
> numbers that I see on the Axis window.
>
> Thanks,
> Allen
>